#include<iostream>
#include<stdio.h>
#include<string.h>
using namespace std;
int main(){
    int i=0;
    char s[100]="";

    gets(s);
    int num = strlen(s);
    for(;s[i]<=num;i++)
    {
            if(s[i]>='a'&&s[i]<='z')
            s[i]=(s[i]-3-'a')%26+'a';
            else if(s[i]>'A'&&s[i]<='z')
                s[i]=(s[i]-'A'-3)%26+'A';
    }

    int j=num-1;
      while(i<j)

     {
        char t=s[i];
         s[i]=s[j];
        s[j]=t;

        i++;
        j--;
     }
     for(int i=0; i<num; i++)
    {
       if(s[i]>='a' && s[i]<='z')
            s[i]+='A'-'a';
        else if(s[i]>='A' && s[i]<='Z')
       s[i]+='a'-'A';
}
    puts(s);
    return 0;
}
